﻿package fj.site
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	import fj.ui.FJMenu;
	
	public class FJSiteMenu extends FJMenu
	{
		private var _model:Model;
		
		public function FJSiteMenu():void
		{
			_model = Model.getInstance();
			_model.navigationMenu = this;
			
			var tempArray = new Array();
			for( var i:uint; i < numChildren; i++ ){
				var btn:MovieClip = getChildAt( i ) as MovieClip;
				tempArray.push( btn );
			}
			_model = Model.getInstance();
			arrayBtns = tempArray;
			selected = _model.pagina;
		}
		override protected function menuClick( e:MouseEvent ):void
		{
			_model.pagina = e.currentTarget.name;
		}
	}
}